<?php
/**
 * Created by PhpStorm.
 * User: edmmss
 * Date: 2018/11/14
 * Time: 14:04
 */

namespace app\modules\simpleFactory;


class SimpleFactory
{
    /**
     * 创建bicycle对象
     *
     * @date   2018/11/14
     * @author edmmss
     * @return Bicycle
     */
    public function createBicycle(): Bicycle
    {
        return new Bicycle();
    }

    /**
     * 创建car对象
     *
     * @date   2018/11/14
     * @author edmmss
     * @return Car
     */
    public function createCar(): Car
    {
        return new Car();
    }
}